package gr.aueb.cs.mscis.chordroid;

import gr.aueb.cs.mscis.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class IndexActivity extends Activity {

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.indexlayout);
		
		Intent intent = new Intent(IndexActivity.this, NodeInfoActivity.class);
		startActivity(intent);
		startService(new Intent(this, ChordroidService.class));
		
	}
	
	protected void onDestroy() {        
	    super.onDestroy();
	    stopService(new Intent(this, ChordroidService.class));
	}
}
